//
//  LVPhotoBrowserFlowLayout.swift
//  PhotoBrowser
//
//  Created by 刘伟 on 16/4/28.
//  Copyright © 2016年 刘伟. All rights reserved.
//

import UIKit

class LVPhotoBrowserFlowLayout: UICollectionViewFlowLayout {

    
    override func prepareLayout() {

        //        item宽高
        
        let w : CGFloat = (collectionView?.frame.size.width)!
        let h : CGFloat = (collectionView?.frame.size.height)!
        itemSize = CGSizeMake(w, h)
        
        //        间距设置
        scrollDirection = .Horizontal
        minimumInteritemSpacing = 0
        minimumLineSpacing = 0
        
        
        collectionView?.pagingEnabled = true

        
        
        
    }
    
}
